﻿using Microsoft.AspNetCore.Mvc;
using NLog;

namespace CrmProject.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class ValuesController : ControllerBase
    {
        private IConfiguration _configuration;
        private readonly Logger logger = LogManager.GetCurrentClassLogger();
        public ValuesController(IConfiguration configuration)
        {
            _configuration = configuration;
        }

        [HttpGet("GetTest")]
        public IActionResult GetTest()
        {
            int a =0;
            //var b = 1 / a;
            //logger.Error("这是一条测试错误日志11111111111111111111111111111111");
            return Ok();
        }
    }
}
